#ifndef MODEL_H
#define MODEL_H

#include <d3d10.h>
#include <d3dx10math.h>

#include "Texture.h"

class Model
{
public:
	Model();
	Model(const Model&);
	~Model();

	bool Initialize();
	void Shutdown();
	void Render();

	int GetIndexCount();
	Texture* GetTexture() {return m_Texture;}

private:
	bool InitializeBuffers();
	void ShutdownBuffers();
	void RenderBuffers();

private:
	ID3D10Buffer* m_VertexBuffer; 
	ID3D10Buffer* m_IndexBuffer;
	int m_VertexCount;
	int m_IndexCount;

	Texture* m_Texture;

};

#endif
